package com.infonam.jsf.eshop.model;

import java.io.Serializable;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

@ManagedBean(name="userHolder")
@SessionScoped
public class UserHolder implements Serializable {
	private static final long serialVersionUID = 1L;
	private User currentUser;
	
	/*
	 * Store the original view ID , so we can return the use to the right page
	 * once he has logged in.
	 */
	private String originalViewId;
	public User getCurrentUser() {
		return currentUser;
	}
	public void setCurrentUser(User currentUser) {
		this.currentUser = currentUser;
	}

	public String getOriginalViewId() {
		return originalViewId;
	}

	public void setOriginalViewId(String originalViewId) {
		this.originalViewId = originalViewId;
	}
}